Set the fallback program class here, rather than
authorOwen Taylor <otaylor@redhat.com>
Mon, 21 Jan 2002 16:50:45 +0000 (16:50 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 21 Jan 2002 16:50:45 +0000 (16:50 +0000)
Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
        rather than lazilygdk_get_program_class(), since we don't want
        -name to override it. (#69123, Ryan Lovett)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdk.c

index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index 834307dd0a8d622c2310b68e3e159c1d7faf3e78..8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
+       rather than lazilygdk_get_program_class(), since we don't want
+       -name to override it. (#69123, Ryan Lovett)
+
 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c: Fix wrong types for command line arguments 
index dce2ac063e4297f85686f5db94e5e26c2bc046eb..04020ebc755dab824a01ed839a9d5101dd8ed185 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -295,6 +295,13 @@ gdk_init_check (int    *argc,
       g_set_prgname ("<unknown>");
     }
   
+  /* We set the fallback program class here, rather than lazily in
+   * gdk_get_program_class, since we don't want -name to override it.
+   */
+  gdk_progclass = g_strdup (g_get_prgname ());
+  if (gdk_progclass[0])
+    gdk_progclass[0] = g_ascii_toupper (gdk_progclass[0]);  
+  
 #ifdef G_ENABLE_DEBUG
   {
     gchar *debug_string = getenv("GDK_DEBUG");
@@ -456,12 +463,6 @@ gdk_threads_init ()
 G_CONST_RETURN char *
 gdk_get_program_class (void)
 {
-  if (gdk_progclass == NULL)
-    {
-      gdk_progclass = g_strdup (g_get_prgname ());
-      gdk_progclass[0] = g_ascii_toupper (gdk_progclass[0]);
-    }
-  
   return gdk_progclass;
 }